package com.epam.weblibrary.service.user;

import com.epam.weblibrary.entities.user.User;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * Created by Iurii_Miedviediev on 9/12/2014.
 */
public interface UserService {
    User find(Long id);
    User findUserByLogin(String login);
    User addUser(User user);
    List<User> findAll();
    void delete(Long id);
    void save(User user);
}
